package com.yao.shop.mapper;

import com.yao.shop.pojo.ShopCouponHistory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShopCouponHistoryMapper {
    List<ShopCouponHistory> getByCouponIdsAndUsername(@Param("list") List<Long> couponIds, @Param("username")String username);

    void save(ShopCouponHistory shopCouponHistory);

    ShopCouponHistory getByCouponIdAndUsername(@Param("couponId") Long couponId, @Param("username")String username);

    void updateToUse(ShopCouponHistory shopCouponHistory);
}
